package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IStoryDao;
import com.guoxue.domain.StoryConfigVo;
import com.guoxue.service.IStoryConfigService;
@Service("storyService")
public class StoryServiceImpl implements IStoryConfigService {
	@Resource
	private IStoryDao storyDao;

	@Override
	public List<StoryConfigVo> getStoryConfigList() {
		return storyDao.getStoryConfigList();
	}

	@Override
	public void saveStoryConfig(StoryConfigVo sc) {
		storyDao.saveStoryConfig(sc);
	}

	@Override
	public void deleteStory(int id) {
		storyDao.deleteStory(id);
	}

	@Override
	public StoryConfigVo getStory(int storyId) {
		return storyDao.getStory(storyId);
	}

}
